@echo off
chcp 65001

echo Initializing Git hooks...

:: Set Git hooks path to project's scripts/git-hooks directory
git config core.hooksPath scripts/git-hooks

:: Ensure pre-commit has execute permission
powershell -Command "Set-ItemProperty 'scripts\git-hooks\pre-commit' -Name IsReadOnly -Value $false"

echo Git hooks initialization completed!
echo Done!